<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk">

<f:view>
<f:loadBundle var="text" basename="#{tdList.bundleName}"/>
    <head>
        <title>#{text['tdList.title']}</title>
        <meta name="heading" content="#{text['tdList.heading']}"/>
        <meta name="menu" content="TdMenu"/>
    </head>
<body id="tdList">
<h:form id="editTd">

<h:commandButton value="#{text['button.add']}" action="add" id="add" immediate="true" styleClass="button"/>
<h:commandButton value="#{text['button.done']}" action="mainMenu" id="cancel" immediate="true" styleClass="button" style="margin-left: 5px"/>

<t:dataTable id="tds" var="td" style="margin-top: 10px"
    value="#{tdList.tds}" rows="25" sortColumn="#{tdList.sortColumn}"
    sortAscending="#{tdList.ascending}" styleClass="scrollerTable table"
    headerClass="standardTable_Header" rowClasses="standardTable_Row1,standardTable_Row2"
    columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_ColumnCentered">

    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="dlwz" arrow="true">
                <h:outputText value="#{text['td.dlwz']}" />
            </t:commandSortHeader>
        </f:facet>
        <h:commandLink action="#{tdForm.edit}" value="#{td.dlwz}">
            <f:param name="tdid" value="#{td.id}"/>
            <f:param name="from" value="list"/>
        </h:commandLink>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="gjjz" arrow="true">
                <h:outputText value="#{text['td.gjjz']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.gjjz}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="htqx" arrow="true">
                <h:outputText value="#{text['td.htqx']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.htqx}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="mj" arrow="true">
                <h:outputText value="#{text['td.mj']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.mj}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="nzj" arrow="true">
                <h:outputText value="#{text['td.nzj']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.nzj}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="operation" arrow="true">
                <h:outputText value="#{text['td.operation']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.operation}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="optdate" arrow="true">
                <h:outputText value="#{text['td.optdate']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.optdate}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="tdxz" arrow="true">
                <h:outputText value="#{text['td.tdxz']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.tdxz}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="username" arrow="true">
                <h:outputText value="#{text['td.username']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.username}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="version" arrow="true">
                <h:outputText value="#{text['td.version']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.version}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="xh" arrow="true">
                <h:outputText value="#{text['td.xh']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.xh}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="yjcrj" arrow="true">
                <h:outputText value="#{text['td.yjcrj']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.yjcrj}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="yjsynx" arrow="true">
                <h:outputText value="#{text['td.yjsynx']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.yjsynx}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="zymj" arrow="true">
                <h:outputText value="#{text['td.zymj']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{td.zymj}" escape="true"/>
    </t:column>
</t:dataTable>

<ui:include src="/common/tableFooter.xhtml">
    <ui:param name="tableName" value="tds"/>
</ui:include>

<script type="text/javascript">
    highlightTableRows("editTd:tds");
</script>

</h:form>
</body>
</f:view>
</html> 